package demandsystem

type Response struct {
	Message string `json:"message"`
	Ok      bool   `json:"ok"`
}

type NodeLoginResponse struct {
	NodeID uint `json:"node_id"`
	Response
}

type CheckResourceResponse struct {
	Resource
	Response
}

type CheckPlayUrlResponse struct {
	PlayUrl       PlayUrl       `json:"play_url"`
	OrginFileInfo OrginFileInfo `json:"orgin_file_info"`
	Response
	HasOrginFileInfo bool
}

type OssFileInfoListResponse struct {
	Response
	OssFileInfoList []OssFileInfo
}

type APIResponse struct {
	Response
	Code int `json:"code"`
}

type DistributeMissionResponse struct {
	Response
	RID             string        `json:"r_id"`
	MissionID       uint          `json:"mission_id"`
	PlayUrl         PlayUrl       `json:"play_url"`
	OssFileInfoList []OssFileInfo `json:"ossfile_list"`
}
